// export interface TreeItem {
//   children:
// }

const defaultFieldConfig = {
  children: "children",
  key: "key",
};

export function tree2List(tree: unknown[], fieldConfig = defaultFieldConfig) {
  const { children, key } = fieldConfig;
}
